package com.security.service.impl;

import com.security.model.InterceptUrl;
import com.security.service.InterceptAddressService;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@ConfigurationProperties(prefix = "security.config")
public class ConfigInterceptAddressServiceImpl implements InterceptAddressService {

    private List<InterceptUrl> interceptUrls;

    @Override
    public List<InterceptUrl> getInterceptUrls() {
        return interceptUrls;
    }

    // Setter for YAML binding
    public void setInterceptUrls(List<InterceptUrl> interceptUrls) {
        this.interceptUrls = interceptUrls;
    }
}